//
//  HomeBaseViewController.h
//  CarLifes
//
//  Created by yu on 2017/6/27.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import "BaseViewController.h"

#import <MAMapKit/MAMapKit.h>
#import <AMapFoundationKit/AMapFoundationKit.h>

typedef NS_ENUM(NSInteger, FuncKeyType) {
    FuncKeyTypeReplayTrace = 100, // 轨迹回放
    FuncKeyTypeRelocation, // 重新定位
    FuncKeyTypeTracing, // 实时追踪
    FuncKeyTypeUserInfo, // 用户信息
    FuncKeyTypeMore, // 更多
    FuncKeyTypeDeviceAlarm , // 设备报警
    FuncKeyTypeNavigator = 888 // 一键导航
};

typedef NS_ENUM(NSInteger, NaviType) {
    NaviTypeDrive = 0, // 驾车导航
    NaviTypeWalk // 步行导航
};

#define kMapView

@interface HomeBaseViewController : BaseViewController<MAMapViewDelegate>

@property (nonatomic, strong) MAMapView *mapView;
@property (nonatomic, weak) UIButton *userLocBtn;
@property (nonatomic, weak) UIButton *magnifyBtn;
@property (nonatomic, weak) UIButton *shrinkBtn;
@property (nonatomic, weak) UIView *zoomBtnContainer;
@property (nonatomic, weak) UIView *otherBtnContainer;
//@property (nonatomic, weak) UIButton *roadConditionBtn;

@property (nonatomic, weak) UIButton *switcherBtn;

@property (nonatomic) BOOL isDarkMode;



- (void)initMapView;
- (void)setupButton;

- (void)magnify:(UIButton *)sender;
- (void)shrink:(UIButton *)sender;
- (void)userLocation:(UIButton *)sender;

@end
